<form style="padding:30px;" class="layui-form seller-alone-form" id="edit_form">
    <div class="layui-form-item">
        <label class="layui-form-label"><i class="required-color">*</i>账号：</label>
        <div class="layui-input-inline">
            <input name="admin_name" lay-verify="required" placeholder="请输入登陆账号" class="layui-input" type="text" maxlength="20">
        </div>
        <div class="layui-form-mid layui-word-aux">字母数字或下划线,6-20位</div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label"><i class="required-color">*</i>密码：</label>
        <div class="layui-input-inline">
            <input name="admin_password" value="" placeholder="请输入密码" lay-verify="pass" class="layui-input" type="text">
        </div>
        <div class="layui-form-mid layui-word-aux">请填写6到16位密码</div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label"><i class="required-color">*</i>姓名：</label>
        <div class="layui-input-inline">
            <input name="name" lay-verify="mobile" placeholder="请输入管理员姓名" class="layui-input" type="text">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label"><i class="required-color">*</i>手机号码：</label>
        <div class="layui-input-inline">
            <input name="mobile" lay-verify="mobile" placeholder="请输入管理员手机号码" class="layui-input" type="text">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">角色：</label>
        <div class="layui-input-inline">
            {volist name="roleList" id="vo"}
                <input type="checkbox" name="role_id[{$vo.id}]" lay-skin="primary" title="{$vo.name}" {if isset($vo['checked']) && $vo['checked']}checked=""{/if} >
            {/volist}
        </div>
    </div>
</form>
<script>
    layui.use('form', function(){
        layui.form.render();
    });
</script>